Be more careful with floating point divisions
authorMatthias Clasen <mclasen@redhat.com>
Fri, 8 Jan 2016 18:17:58 +0000 (13:17 -0500)
committerMatthias Clasen <mclasen@redhat.com>
Fri, 8 Jan 2016 18:17:58 +0000 (13:17 -0500)
commit3f56c530b3b5c77f2b9194c479afd1cdd25e9a42
tree08f361740c5935d50b5be37014253e455b27f253
parent709cc0860351a2f77fcdf76396aab61a1e2899a0
Be more careful with floating point divisions

The assumption that MIN() takes care of all infinities here
turns out to be wrong. We were getting inf and -nan for some
combinations of 0 width/height and corners, leading to invalid
matrices and cairo errors.

https://bugzilla.gnome.org/show_bug.cgi?id=759668
gtk/gtkroundedbox.c